package com.ruoyi.framework.aspectj;

import com.ruoyi.framework.config.ProcessingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class RedisSubscriber {

    @Autowired
    private ProcessingService processingService;

    @Async
    public void onMessage(String message) throws Exception {
        processingService.process(message);
    }

    private void processMessage(String message) {

    }
}
